import request from '@/utils/request'
import qs from 'qs'
//查询受限空间列表
export function listSpace(query) {
  return request({
    url: '/aqsc/space/list',
    method: 'get',
    params: query
  })
}
// 查询用户详细
export function getListById(id) {
  return request({
    url: '/aqsc/space/' + id,
    method: 'get',
    responseType: 'json'
  })
}
// 查询事故类型
export function getTypeList(query){
  return request({
    url: '/aqsc/space/listType',
    method: 'get',
    params: query
  })
}
// 新增角色
export function addSpace(data) {
  return request({
    url: '/aqsc/space',
    method: 'post',
    data: data
  })
}
//删除角色
export function delUser(ids){
  return request({
    url: 'aqsc/space/' + ids,
    method: 'delete'
  })
}


